package com.crm.model.entity.customerManager;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomerReturnExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerReturnExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCustomerReturnIdIsNull() {
            addCriterion("customer_return_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdIsNotNull() {
            addCriterion("customer_return_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdEqualTo(String value) {
            addCriterion("customer_return_id =", value, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdNotEqualTo(String value) {
            addCriterion("customer_return_id <>", value, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdGreaterThan(String value) {
            addCriterion("customer_return_id >", value, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdGreaterThanOrEqualTo(String value) {
            addCriterion("customer_return_id >=", value, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdLessThan(String value) {
            addCriterion("customer_return_id <", value, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdLessThanOrEqualTo(String value) {
            addCriterion("customer_return_id <=", value, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdLike(String value) {
            addCriterion("customer_return_id like", value, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdNotLike(String value) {
            addCriterion("customer_return_id not like", value, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdIn(List<String> values) {
            addCriterion("customer_return_id in", values, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdNotIn(List<String> values) {
            addCriterion("customer_return_id not in", values, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdBetween(String value1, String value2) {
            addCriterion("customer_return_id between", value1, value2, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andCustomerReturnIdNotBetween(String value1, String value2) {
            addCriterion("customer_return_id not between", value1, value2, "customerReturnId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdIsNull() {
            addCriterion("return_people_id is null");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdIsNotNull() {
            addCriterion("return_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdEqualTo(String value) {
            addCriterion("return_people_id =", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdNotEqualTo(String value) {
            addCriterion("return_people_id <>", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdGreaterThan(String value) {
            addCriterion("return_people_id >", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("return_people_id >=", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdLessThan(String value) {
            addCriterion("return_people_id <", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdLessThanOrEqualTo(String value) {
            addCriterion("return_people_id <=", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdLike(String value) {
            addCriterion("return_people_id like", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdNotLike(String value) {
            addCriterion("return_people_id not like", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdIn(List<String> values) {
            addCriterion("return_people_id in", values, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdNotIn(List<String> values) {
            addCriterion("return_people_id not in", values, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdBetween(String value1, String value2) {
            addCriterion("return_people_id between", value1, value2, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdNotBetween(String value1, String value2) {
            addCriterion("return_people_id not between", value1, value2, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnTmIsNull() {
            addCriterion("return_tm is null");
            return (Criteria) this;
        }

        public Criteria andReturnTmIsNotNull() {
            addCriterion("return_tm is not null");
            return (Criteria) this;
        }

        public Criteria andReturnTmEqualTo(Date value) {
            addCriterion("return_tm =", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmNotEqualTo(Date value) {
            addCriterion("return_tm <>", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmGreaterThan(Date value) {
            addCriterion("return_tm >", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmGreaterThanOrEqualTo(Date value) {
            addCriterion("return_tm >=", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmLessThan(Date value) {
            addCriterion("return_tm <", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmLessThanOrEqualTo(Date value) {
            addCriterion("return_tm <=", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmIn(List<Date> values) {
            addCriterion("return_tm in", values, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmNotIn(List<Date> values) {
            addCriterion("return_tm not in", values, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmBetween(Date value1, Date value2) {
            addCriterion("return_tm between", value1, value2, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmNotBetween(Date value1, Date value2) {
            addCriterion("return_tm not between", value1, value2, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnReasonIsNull() {
            addCriterion("return_reason is null");
            return (Criteria) this;
        }

        public Criteria andReturnReasonIsNotNull() {
            addCriterion("return_reason is not null");
            return (Criteria) this;
        }

        public Criteria andReturnReasonEqualTo(String value) {
            addCriterion("return_reason =", value, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonNotEqualTo(String value) {
            addCriterion("return_reason <>", value, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonGreaterThan(String value) {
            addCriterion("return_reason >", value, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonGreaterThanOrEqualTo(String value) {
            addCriterion("return_reason >=", value, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonLessThan(String value) {
            addCriterion("return_reason <", value, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonLessThanOrEqualTo(String value) {
            addCriterion("return_reason <=", value, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonLike(String value) {
            addCriterion("return_reason like", value, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonNotLike(String value) {
            addCriterion("return_reason not like", value, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonIn(List<String> values) {
            addCriterion("return_reason in", values, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonNotIn(List<String> values) {
            addCriterion("return_reason not in", values, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonBetween(String value1, String value2) {
            addCriterion("return_reason between", value1, value2, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnReasonNotBetween(String value1, String value2) {
            addCriterion("return_reason not between", value1, value2, "returnReason");
            return (Criteria) this;
        }

        public Criteria andReturnTypeIsNull() {
            addCriterion("return_type is null");
            return (Criteria) this;
        }

        public Criteria andReturnTypeIsNotNull() {
            addCriterion("return_type is not null");
            return (Criteria) this;
        }

        public Criteria andReturnTypeEqualTo(String value) {
            addCriterion("return_type =", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotEqualTo(String value) {
            addCriterion("return_type <>", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeGreaterThan(String value) {
            addCriterion("return_type >", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeGreaterThanOrEqualTo(String value) {
            addCriterion("return_type >=", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeLessThan(String value) {
            addCriterion("return_type <", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeLessThanOrEqualTo(String value) {
            addCriterion("return_type <=", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeLike(String value) {
            addCriterion("return_type like", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotLike(String value) {
            addCriterion("return_type not like", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeIn(List<String> values) {
            addCriterion("return_type in", values, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotIn(List<String> values) {
            addCriterion("return_type not in", values, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeBetween(String value1, String value2) {
            addCriterion("return_type between", value1, value2, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotBetween(String value1, String value2) {
            addCriterion("return_type not between", value1, value2, "returnType");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("customer_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(String value) {
            addCriterion("customer_id =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(String value) {
            addCriterion("customer_id <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(String value) {
            addCriterion("customer_id >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(String value) {
            addCriterion("customer_id >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(String value) {
            addCriterion("customer_id <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(String value) {
            addCriterion("customer_id <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLike(String value) {
            addCriterion("customer_id like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotLike(String value) {
            addCriterion("customer_id not like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<String> values) {
            addCriterion("customer_id in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<String> values) {
            addCriterion("customer_id not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(String value1, String value2) {
            addCriterion("customer_id between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(String value1, String value2) {
            addCriterion("customer_id not between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andIsBackIsNull() {
            addCriterion("is_back is null");
            return (Criteria) this;
        }

        public Criteria andIsBackIsNotNull() {
            addCriterion("is_back is not null");
            return (Criteria) this;
        }

        public Criteria andIsBackEqualTo(Integer value) {
            addCriterion("is_back =", value, "isBack");
            return (Criteria) this;
        }

        public Criteria andIsBackNotEqualTo(Integer value) {
            addCriterion("is_back <>", value, "isBack");
            return (Criteria) this;
        }

        public Criteria andIsBackGreaterThan(Integer value) {
            addCriterion("is_back >", value, "isBack");
            return (Criteria) this;
        }

        public Criteria andIsBackGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_back >=", value, "isBack");
            return (Criteria) this;
        }

        public Criteria andIsBackLessThan(Integer value) {
            addCriterion("is_back <", value, "isBack");
            return (Criteria) this;
        }

        public Criteria andIsBackLessThanOrEqualTo(Integer value) {
            addCriterion("is_back <=", value, "isBack");
            return (Criteria) this;
        }

        public Criteria andIsBackIn(List<Integer> values) {
            addCriterion("is_back in", values, "isBack");
            return (Criteria) this;
        }

        public Criteria andIsBackNotIn(List<Integer> values) {
            addCriterion("is_back not in", values, "isBack");
            return (Criteria) this;
        }

        public Criteria andIsBackBetween(Integer value1, Integer value2) {
            addCriterion("is_back between", value1, value2, "isBack");
            return (Criteria) this;
        }

        public Criteria andIsBackNotBetween(Integer value1, Integer value2) {
            addCriterion("is_back not between", value1, value2, "isBack");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}